//
//  MyTextField.m
//  UI02_UILabel_UITextField_UIButton_UIImageView
//
//  Created by Scott on 16/3/10.
//  Copyright © 2016年 Scott. All rights reserved.
//

#import "MyTextField.h"

@implementation MyTextField


- (instancetype)initWithFrame:(CGRect)frame placeHolder:(NSString *)placeHolder {
    
    self = [super initWithFrame:frame];
    if (self) {
        
        // 占位符
        self.placeholder = placeHolder;
        
        [self config];
    }
    return self;
}

- (void)config {
    
    // 边框style
    self.borderStyle = UITextBorderStyleRoundedRect;
    
    // 清除按键
    self.clearButtonMode = UITextFieldViewModeAlways;
    
    // 键盘(亮或暗)
    self.keyboardAppearance = UIKeyboardAppearanceDark;
    
}










@end
